package com.qk.common.exception;

import com.qk.common.enums.Code;

/**
 * @author diva
 * @date 2025/10/10 10:55
 * @ProjectName
 */

public class CommonException extends BaseException {
    public CommonException(Code code) {
        super(code.getMsg());
    }
    public static void throwException(Code code){
        throw new CommonException(code);
    }
}
